package com.peanut.api.fallback;

import com.peanut.api.SpecFeign;
import com.peanut.common.Result;
import com.peanut.dto.TabSpecDTO;
import org.springframework.stereotype.Component;

//降级类
@Component
public class SpecFeignFallback implements SpecFeign {

    @Override
    public Result<TabSpecDTO> getSpec() {
        System.out.println("降级方法");
        return Result.fallback();
    }
}
